﻿using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DTO;

namespace DAO
{
    public class DonHangDAO
    {
        public static string GetID()
        {
            DataTable dataTable = DataProvider.ExecuteReader("sp_CreatePhieuDatID", null);           
            string ID = null;

            if (dataTable.Rows.Count > 0)
            {
                DataRow dataRow = dataTable.Rows[0];
                ID = dataRow[0].ToString();
            }            

            return ID;
        }
    }
}
